Python Installation Windows
Concept
eCognition provides support for the execution of Python programs. The implementation is based on Python Version 3.9.12 (Python Software Foundation, https://www.python.org/) and offers the ability to perform image analysis, data management and more tasks using Python scripts.
Prerequisite
To use Python scripts in eCognition you need a valid eCognition Developer license and the latest eCognition License Server.
During setup of eCognition activate the check box Python Support so that the programming language Python is installed:
The eCognition installation comprises the following python libraries/packages:
-
Numpy - used for rasters and regions
-
Pandas - support of vector data, attributes and geometries
-
Shapely - holds geometry for vectors
-
Debugpy - implementation of the debug adapter protocol for Python
-
SciPy - supports special functions, integration, ordinary differential equation (ODE) solvers, and gradient optimization
Available packages can be listed and new packages added using eCognitions' Environment manager accessible via Tools > Manage Python Environments
eCognition uses venv for virtual environment management, that creates isolated Python environments for Python libraries/packages. Each environment can contain different packages. eCognition's Python installation is separate and independent from your local or main system installation (see https://docs.python.org/3.9/library/venv.html).
See also:
Reference Book > Algorithms and Processes > Miscellaneous > Python Script - description algorithm and its parameters
Reference Book > Algorithms and Processes > Miscellaneous > Python API Reference - reference for each class, properties and methods
User Guide > Python Integration - application examples for python scripts
Installation Guide > Linux > Python Installation - installation and setup for Linux